<template>
  <div :style="{ width: width }">
    <slot></slot>
  </div>
</template>

<script lang="ts">
  import { Component, Emit, Inject, Model, Prop, Provide, Vue, Watch } from 'vue-property-decorator'

  @Component
  export default class TcView extends Vue{
    width = '100%'

    mounted () {
      this.width = (window.innerWidth - 20) + 'px'
    }
  }
</script>
